﻿namespace Douyu.SDK.Messages
{
    /// <summary>
    /// 心跳消息(30秒一次)
    /// </summary>
    public class KeepLiveMessage : BaseMessage
    {
        public KeepLiveMessage(BaseMessage msg) : base(msg)
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public KeepLiveMessage() : base(MessageType.keeplive, MsgType.ClientToServer)
        {
        }

        /// <summary>
        /// 心跳时间(UnixTime)
        /// </summary>
        public long tick
        {
            get { return (GetValue(nameof(tick), -1)); }
            set { SetValue(nameof(tick), value); }
        }
    }
}
